const {argv} = require('process');

argv.forEach( function(element, index) {
	console.log(index+'-'+element);
});

const execFile = require('child_process').execFile;

execFile(`node`, ['-v'], (error, stdout, stderr) => {
    console.log({ error, stdout, stderr })
    // { error: null, stdout: 'v8.5.0\n', stderr: '' }
})
const cpus = require('os').cpus();
console.log(cpus.length);